﻿<Window x:Class="LFSRecord2.View.Dialogs.RDToNullDialogBox"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Convert ReplayData to Null Layer" Height="140" Width="335"
        ShowInTaskbar="False"
        WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
    <Grid Background="#FFF5ECEC">
        <Grid.Resources>
            <Style TargetType="{x:Type Button}">
                <Setter Property="Margin" Value="2,0,2,0" />
            </Style>
            <Style TargetType="{x:Type Label}">
                <Setter Property="Margin" Value="5,0,0,0" />
            </Style>
        </Grid.Resources>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="34" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Margin="2" Padding="2" BorderThickness="2" BorderBrush="#FF8D8D8D">
            <StackPanel Name="PageArea" Orientation="Vertical">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="210" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Label Content="Frame Thinning :" Grid.Row="0" Grid.Column="0" />
                    <TextBox Name="FrameThinningValue" 
                             Text="{Binding FrameThinning}" 
                             Grid.Row="0" Grid.Column="1" 
                             Margin="5,2,35,2"
                             ToolTip="0 = No thinning&#xa;1 = Keyframe on every other frame&#xa;2 = etc..." />
                    
                    <Label Content="Delete ReplayData after conversion :" Grid.Row="1" Grid.Column="0" />
                    <CheckBox IsChecked="{Binding CloseRDLayer}" Grid.Row="1" Grid.Column="1" Margin="6,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" />

                </Grid>
            </StackPanel>
        </Border>
        <Border Grid.Row="1" Margin="2" Padding="2" BorderThickness="2" BorderBrush="#FF8D8D8D">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Button Name="OKButton" Click="OKButton_Click" IsDefault="True" Width="54">OK</Button>
                <Button Name="CancelButton" IsCancel="True" Width="54">Cancel</Button>
            </StackPanel>
        </Border>
    </Grid>
</Window>
